* {
    margin: 0;
    padding: 0;
}

body {
    background-color: hotpink(235,235,235);
}

form {
    width: 400px;
    height: 320px;
    background-color:pink;
    padding: 20px;
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);/*水平垂直居中,还可以根据屏幕的大小来调节自身的宽度，做弹框时不用设置宽高*/
}

h2 {
    margin-bottom: 20px;
    text-align: center;
}

form input {
    width: 100%;
    height: 30px;
    display: block;
    margin-bottom: 20px;
    padding-left: 10px;
    box-sizing: border-box;
}

.mya {
    width: 100%;
    height: 30px;
    margin-bottom: 20x;
}

.mya a:nth-child(1) {
    float: left;
}

.mya a:nth-child(2) {
    float: right;
}

button {
    width: 100%;
    height: 40px;
    background-color:hotpink(235,235,235);
    border: none;
}

button:active {
    box-shadow: 0 0 3pxh wheat(173,172,172);
}